package remote;

import doors.DogDoor;

public class Remote {
    private DogDoor door;

    public Remote (DogDoor door) {
        this.door = door;
    }

    public void pressButton() {
        System.out.println("Naciśnięto przycisk.");
        if (door.isOpen() )
            door.close();
        else
            door.open();
    }
}
